<?php
namespace app\admin\controller;

class Index extends Base
{
    public function __construct()
    {
        parent::__construct();
    }
	
    public function index()
    {
        $this->isLogin();
        return $this->fetch();
    }
	
    public function stater()
    {
        return $this->fetch();
    }
	
	/**
	 *  根据ip获取所在地区
	 */
	
	
	public function ip()
	{
		$ip = get_client_ip();
		$Ip = new \util\IpLocation('UTFWry.dat');
		$area = $Ip->getlocation($ip);
		$country = $area['country'];
		$this->view->assign('area',$country);
		 return $this->view->fetch();
	}

	
	
	
	
	
	
	
	
	
	
	
	
	
}
